package core.pojos;

import java.util.ArrayList;
import java.util.Date;

/**
 *
 * @author Admin
 */
public class ItemInfo {

    private String name;
    private boolean dir;
    private Date modifiedDate;
    private String id;

    private String fileExtension = "";
    private long fileSize;
    private String storageType;

    private ArrayList<ItemInfo> items = new ArrayList<ItemInfo>();

    public ItemInfo() {

    }

    public ItemInfo(String name, boolean dir, String fileExtension) {
        this.name = name;
        this.dir = dir;
        this.fileExtension = fileExtension;
    }

    public void addItem(ItemInfo item) {
        getItems().add(item);
    }

    public ArrayList<ItemInfo> getItems() {
        return items;
    }

    /**
     * @param list the list to set
     */
    public void setItems(ArrayList<ItemInfo> list) {
        this.items = list;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the modifiedDate
     */
    public Date getModifiedDate() {
        return modifiedDate;
    }

    /**
     * @param modifiedDate the modifiedDate to set
     */
    public void setModifiedDate(Date modifiedDate) {
        this.modifiedDate = modifiedDate;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the fileExtension
     */
    public String getFileExtension() {
        return fileExtension;
    }

    /**
     * @param fileExtension the fileExtension to set
     */
    public void setFileExtension(String fileExtension) {
        this.fileExtension = fileExtension;
    }

    /**
     * @return the fileSize
     */
    public long getFileSize() {
        return fileSize;
    }

    /**
     * @param fileSize the fileSize to set
     */
    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    /**
     * @return the storageType
     */
    public String getStorageType() {
        return storageType;
    }

    /**
     * @param storageType the storageType to set
     */
    public void setStorageType(String storageType) {
        this.storageType = storageType;
    }

    /**
     * @return the dir
     */
    public boolean isDir() {
        return dir;
    }

    /**
     * @param dir the dir to set
     */
    public void setDir(boolean dir) {
        this.dir = dir;
    }

}
